package org.qu.vo;

import java.sql.Timestamp;

/**
 * IsnsPolluserId entity. @author MyEclipse Persistence Tools
 */

public class IsnsPolluserId implements java.io.Serializable {

	// Fields

	private Integer uid;
	private String username;
	private Integer pid;
	private String option;
	private Timestamp dateline;
	private Short anony;

	// Constructors

	/** default constructor */
	public IsnsPolluserId() {
	}

	/** minimal constructor */
	public IsnsPolluserId(Integer uid, Short anony) {
		this.uid = uid;
		this.anony = anony;
	}

	/** full constructor */
	public IsnsPolluserId(Integer uid, String username, Integer pid,
			String option, Timestamp dateline, Short anony) {
		this.uid = uid;
		this.username = username;
		this.pid = pid;
		this.option = option;
		this.dateline = dateline;
		this.anony = anony;
	}

	// Property accessors

	public Integer getUid() {
		return this.uid;
	}

	public void setUid(Integer uid) {
		this.uid = uid;
	}

	public String getUsername() {
		return this.username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public Integer getPid() {
		return this.pid;
	}

	public void setPid(Integer pid) {
		this.pid = pid;
	}

	public String getOption() {
		return this.option;
	}

	public void setOption(String option) {
		this.option = option;
	}

	public Timestamp getDateline() {
		return this.dateline;
	}

	public void setDateline(Timestamp dateline) {
		this.dateline = dateline;
	}

	public Short getAnony() {
		return this.anony;
	}

	public void setAnony(Short anony) {
		this.anony = anony;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof IsnsPolluserId))
			return false;
		IsnsPolluserId castOther = (IsnsPolluserId) other;

		return ((this.getUid() == castOther.getUid()) || (this.getUid() != null
				&& castOther.getUid() != null && this.getUid().equals(
				castOther.getUid())))
				&& ((this.getUsername() == castOther.getUsername()) || (this
						.getUsername() != null
						&& castOther.getUsername() != null && this
						.getUsername().equals(castOther.getUsername())))
				&& ((this.getPid() == castOther.getPid()) || (this.getPid() != null
						&& castOther.getPid() != null && this.getPid().equals(
						castOther.getPid())))
				&& ((this.getOption() == castOther.getOption()) || (this
						.getOption() != null
						&& castOther.getOption() != null && this.getOption()
						.equals(castOther.getOption())))
				&& ((this.getDateline() == castOther.getDateline()) || (this
						.getDateline() != null
						&& castOther.getDateline() != null && this
						.getDateline().equals(castOther.getDateline())))
				&& ((this.getAnony() == castOther.getAnony()) || (this
						.getAnony() != null
						&& castOther.getAnony() != null && this.getAnony()
						.equals(castOther.getAnony())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getUid() == null ? 0 : this.getUid().hashCode());
		result = 37 * result
				+ (getUsername() == null ? 0 : this.getUsername().hashCode());
		result = 37 * result
				+ (getPid() == null ? 0 : this.getPid().hashCode());
		result = 37 * result
				+ (getOption() == null ? 0 : this.getOption().hashCode());
		result = 37 * result
				+ (getDateline() == null ? 0 : this.getDateline().hashCode());
		result = 37 * result
				+ (getAnony() == null ? 0 : this.getAnony().hashCode());
		return result;
	}

}